package de.tuberlin.dima.dkey.util;

import java.util.Comparator;
import java.util.HashSet;

public class HashSetSorter implements Comparator<Object> {
	
	public int compare(Object arg0, Object arg1) {
		HashSet x = (HashSet)arg0;
		HashSet y = (HashSet)arg1;
		if(x.size() > y.size()) {
			return -1;
		} else if(x == y) {
			return 0;
		} else {
			return 1;
		}
	}


}
